package com.powell.health.activity;

import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;

/**
 * Created with IntelliJ IDEA.
 * User: tpowell
 * Date: 1/1/13
 * Time: 3:25 PM
 * To change this template use File | Settings | File Templates.
 */
public abstract class AbstractHealthActivity extends Activity {

    public void onCreate(Bundle savedInstance) {
        super.onCreate(savedInstance);
    }

    public boolean isLandScape() {
        if (getResources().getConfiguration().orientation
                == Configuration.ORIENTATION_LANDSCAPE) {
            finish();
            return true;
        }
        return false;
    }
}
